package park_project.service.impl;

import java.util.ArrayList;

import park_project.entity.User;
import park_project.service.UserService;

public class UserServiceimpl implements UserService {
    private ArrayList<User> user = new ArrayList<User>();

    private static UserServiceimpl userserviceimpl = new UserServiceimpl(); //单例

    private UserServiceimpl() {

    }

    public static UserServiceimpl getUserserviceimpl() {
        return userserviceimpl;
    }

    @Override
    public User login(User a) { //把车牌录入
        user.add(a);
        return a;
    }

}
